//定义Mongoose模式和模型
const mongoose = require('mongoose');
// 定义一个Schema
const Schema = mongoose.Schema;

const subInfoType = new Schema({
    subName: { type: String, required: true },
    subMoney: { type: Number, required: true },
    subType: { type: Number, required: false },
    subDes:{ type: String, required: false },
    subRAM:{ type: String, required: true },
    page: { type: Number, required: false },
    pageSize: { type: Number, required: false },
    createTime:{ type: Number, required: false },
    updateTime:{ type: Number, required: false },
})

const subInfoModel = mongoose.model('subInfo',subInfoType)

module.exports = subInfoModel;
